All Questions
13 questions
3votes
1answer
104views
Sequentially find the indexes of an element into a collection
Util class to find into a collection the indexes of a given element with multiple occurrences from the first index or relative to a given index. ...
3votes
1answer
103views
Resource manager class with basic dependency handling in java
Updates: I kept the original code here, while performed some changes on my machine, including: fixed the incorrect return documentation for clear() made the closing ...
0votes
1answer
2kviews
Generic Binary Search Tree Implementation in Java
There is an implementation of Binary Search Tree. This is kind of based on Set Theory that duplicates are not allowed but an attempt to adding the same node twice will replace the older node. BSTNode ...
0votes
1answer
236views
Saving Reddit posts and comments from JSON into ArrayLists
I'm trying to get and save in an ArrayList Reddit posts and comments. The code is very similar for both: The RedditThing is a parent of RedditPost and RedditComment: ...
2votes
1answer
3kviews
Implementation of generic unordered list in java
This question is a follow-up question of this question. These features are added to the new class - Generic class User is capable of setting the size ...
2votes
1answer
2kviews
Generic filter model
I'd like to put some of my code under critique. The following code will take a supplier for elements and a filter function. Once provided -> the elements will be held by the model until "refresh" is ...
0votes
1answer
197views
Reading Maps of strings and doubles from CSV
I want to have 2 classes responsible for reading dictionaries from CSV. The 1st class takes 2 columns from CSV and makes Map<String, String>. The 2nd class ...
0votes
1answer
2kviews
Implementation of a Generic Singly Linked List in Java
New to the site. Trying to implement a generic SinglyLinkedList, fetch returns null even though there are nodes inserted and delete method return false, when true is expected. In addition, it ...
2votes
2answers
456views
Generic OOP Implementation of a Deck-package in Java
I have posted some versions of this question (or at least similar ones) before. But I once again tried to improve it. The goal is to be able to use this package whether it's for a traditional card-...
0votes
1answer
337views
Generic object pool [closed]
I'm doing research on GenericObjectPool by putting Cipher in pool so it can be reused. ...
4votes
1answer
150views
Test and implementation of a reorderable data structure that stores number of users (classifiable as per gender, country, etc.) of an Application
I have implemented a data structure that allows storage of number of users of a hypothetical application in a tree-like data structure in nodes as per their classification based on categories such as ...
10votes
1answer
1kviews
Generic domain independent Monte Carlo Tree Search methods library
I've written this small generic library for the purpose of my Bachelor's thesis. It's fully functional and unit tested and I want to get as many opinions as possible regarding overall code quality (...
4votes
1answer
2kviews
Sorting a linked list using mergesort
This sorts a linked list using mergegort. Can you please critique my code and provide your thoughts on where I should improve my code? ...